package org.example.designpatterns.singleton.demo2;

/**
 * @author Gong.Yang
 */
public class Demo {
    public static void main(String[] args) {
        Singleton instance2 = Singleton.INSTANCE;
        Singleton instance1 = Singleton.INSTANCE;
        System.out.println(instance1 == instance2);
        instance1.fun1();
    }
}
